load("@bazel_gazelle//:def.bzl", "gazelle")
load("//buildifier:def.bzl", "buildifier")

exports_files([
    "LICENSE",
    "launcher.js",
])

config_setting(
    name = "windows",
    values = {"cpu": "x64_windows"},
)

filegroup(
    name = "warnings",
    srcs = ["WARNINGS.md"],
    visibility = ["//warn/docs:__pkg__"],
)

test_suite(
    name = "tests",
    tests = [
        "//api_proto:api.gen.pb.go_checkshtest",
        "//build:build_test",
        "//build_proto:build.gen.pb.go_checkshtest",
        "//buildifier:buildifier_integration_test",
        "//deps_proto:deps.gen.pb.go_checkshtest",
        "//edit:edit_test",
        "//extra_actions_base_proto:extra_actions_base.gen.pb.go_checkshtest",
        "//labels:labels_test",
        "//lang:tables.gen.go_checkshtest",
        "//tables:tables_test",
        "//warn:warn_test",
        "//warn/docs:docs_test",
        "//wspace:wspace_test",
    ],
)

# gazelle:go_naming_convention import_alias
# gazelle:prefix github.com/bazelbuild/buildtools
gazelle(
    name = "gazelle",
)

buildifier(
    name = "buildifier",
)
